package es

import (
	"es/ess"
	"es/mysql"
	"fmt"
)

func main() {

	mysql.InitMySQL()
	ess.InitEs()
	g := mysql.Goods{
		GoodsTitle:  "红牛",
		GoodsPrice:  6,
		GoodsStock:  10,
		GoodsCover:  "http://",
		GoodsStatus: 1,
	}
	err := g.Create()
	if err != nil {
		return
	}
	fmt.Println("添加成功")

}
